﻿using NUnit.Framework;

using Uhi.Libraries.Test;

using Uhi.Applications.FileAid.View;

namespace FileAidTest.View
{
    [TestFixture]
    public class EncodingConverterTest
    {
        #region Convert

        #region 正常ケース
        [Test]
        public void Convert_正常ケース()
        {
            var converter = new EncodingConverter();
            converter.Convert("test", null, null, null).Is("test");
            converter.Convert("IBM290", null, null, null).Is("EBCDIC");
        }
        #endregion

        #endregion

        #region ConvertBack

        #region 正常ケース
        [Test]
        public void ConvertBack_正常ケース()
        {
            var converter = new EncodingConverter();
            converter.ConvertBack("test", null, null, null).Is("test");
            converter.ConvertBack("EBCDIC", null, null, null).Is("IBM290");
        }
        #endregion

        #endregion
    }
}
